package light.head.dao.el;

import java.util.List;

import org.springframework.stereotype.Service;

import light.head.framework.base.BaseDAO;
import light.head.model.el.CourseDataRelation;
@Service
public class CourseDataDAO extends BaseDAO<CourseDataRelation, Integer>{
	/**
	 *根据资料编号获取课程信息
	 */
	public List<CourseDataRelation> findByTmc(Integer tmc){
		String sql = "FROM CourseDataRelation cmr WHERE cmr.tdc = ?";
		return find(sql, tmc);
	}

}
